<template>
  <div class="about">
      <h1>About</h1>
      <div>
        <button @click="store.increment()">{{ store.num }}</button>
      </div>
  </div>
</template>
<script setup>
  // 导入
  import {useCounter} from '../stores/counter';
  // 创建仓库的实例
  const store = useCounter();
  
</script>

 